jQuery(function(e){if(e.support.touch){var t=e.ui.mouse.prototype,n=t._mouseInit,r;function i(e,t){if(e.originalEvent.touches.length>1){return}e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,true,true,window,1,n.screenX,n.screenY,n.clientX,n.clientY,false,false,false,false,0,null);e.target.dispatchEvent(r)}t._touchStart=function(e){var t=this;if(r||!t._mouseCapture(e.originalEvent.changedTouches[0])){return}r=true;t._touchMoved=false;i(e,"mouseover");i(e,"mousemove");i(e,"mousedown")};t._touchMove=function(e){if(!r){return}this._touchMoved=true;i(e,"mousemove")};t._touchEnd=function(e){if(!r){return}i(e,"mouseup");i(e,"mouseout");if(!this._touchMoved){i(e,"click")}r=false};t._mouseInit=function(){var t=this;t.element.bind("touchstart",e.proxy(t,"_touchStart")).bind("touchmove",e.proxy(t,"_touchMove")).bind("touchend",e.proxy(t,"_touchEnd"));n.call(t)}}})